const body=document.querySelector("body"),modeToggle=body.querySelector(".mode-toggle");sidebar=body.querySelector("nav"),sidebarToggle=body.querySelector(".sidebar-toggle");let getMode=localStorage.getItem("mode");getMode&&"dark"===getMode&&body.classList.toggle("dark");let getStatus=localStorage.getItem("status");getStatus&&"close"===getStatus&&sidebar.classList.toggle("close"),modeToggle.addEventListener("click",(()=>{body.classList.toggle("dark"),body.classList.contains("dark")?localStorage.setItem("mode","dark"):localStorage.setItem("mode","light")})),sidebarToggle.addEventListener("click",(()=>{sidebar.classList.toggle("close"),sidebar.classList.contains("close")?localStorage.setItem("status","close"):localStorage.setItem("status","open")})),$(".message a").click((function(){$("form").animate({height:"toggle",opacity:"toggle"},"slow")}));